#env['platform'] and env['tool']
#Default(None)
#name_lib = 'base'
#source_lib =  Split('glapif.c window.c')

env = Environment()

if env['PLATFORM'] == 'win32':
    if env['tool'] == 'msvc':
        env.MergeFlags(env.ParseFlags('-W -Wall -O2 -lopengl32 -lkernel32 -luser32 -lgdi32'))
    elif env['tool'] == 'mingw':
        env.MergeFlags(env.ParseFlags('-W -Wall -O2 -lopengl32 -lkernel32 -luser32 -lgdi32'))
    else:
        print 'Only Linux/Windows MSVC, MinGW and GCC support for now.'
        exit(1)
else:
    env.MergeFlags(env.ParseFlags('-W -Wall -O2 -lX11 -lGL'))

SConscript(['basecode/SConscript',
            'samples/1_empty/SConscript',
            'samples/2_shader/SConscript',
            'samples/3_buffer_object/SConscript'], exports='env')


